package p.ithorns.tools.excel.model;


import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * excel模板构建参数
 *
 * @author FangJun
 * @since 2023/5/31 16:13
 */
@Data
//@ApiModel("excel模板构建参数")
public class TemplateVo<T> {

    /**
     * sheet页名称
     */
    // @ApiModelProperty("sheet页名称")
    private String sheetName;

    /**
     * 列表数据
     */
    // @ApiModelProperty("列表数据")
    private List<T> tableList;

    /**
     * 其他填充参数
     */
    // @ApiModelProperty("其他填充参数")
    private Map<String, Object> paramMap;

    public TemplateVo(String sheetName, List<T> tableList) {
        this.sheetName = sheetName;
        this.tableList = tableList;
    }

    public TemplateVo(String sheetName, List<T> tableList, Map<String, Object> paramMap) {
        this.sheetName = sheetName;
        this.tableList = tableList;
        this.paramMap = paramMap;
    }
}
